/**
 * 项目名：admin
 * 包名：com.xuebang.admin.entity
 * 文件名：NewsContents.java
 * 版本信息：@version 1.0
 * 日期：2014-1-17-下午1:09:51
 */
package com.xuebang.admin.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * 项目名称：admin
 * 类名称：NewsContents
 * 类描述：
 * 创建人：xuyang
 * 创建时间：2014-1-17 下午1:09:51
 * 修改人：xuyang
 * 修改时间：2014-1-17 下午1:09:51
 * 修改备注：
 * @version 
 */
@Table(name="news_contents")
public class NewsContents {

	@Id
	private Integer id;

	@Column
	/** @NotEmpty 用在集合类上面      @NotNull    用在基本类型上   @NotBlank 用在String上面  */
	@NotEmpty
	private Integer tid;

	@Column
	@NotEmpty
	private Integer cid;

	@Column
	private Integer uid;

	@Column
	@NotBlank
	private String contents;

	@Column
	private Date posttime;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getTid() {
		return tid;
	}

	public void setTid(Integer tid) {
		this.tid = tid;
	}

	public Integer getCid() {
		return cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getContents() {
		return contents;
	}

	public void setContents(String contents) {
		this.contents = contents;
	}

	public Date getPosttime() {
		return posttime;
	}

	public void setPosttime(Date posttime) {
		this.posttime = posttime;
	}
}
